Adding Contract Files in the Web3 Tab
Prerequisites:
- A Public/Private GitHub repository
Step 1: Access the Web3 Tab
- Navigate to the application interface.
- Click on the Web3 tab located in the main navigation menu.
Step 2: Add Contracts
- Locate the Add Contracts button on the Web3 tab interface.
- Click on the Add Contracts button.
Step 3: Upload Contract Files
- In the pop-up or section that appears, locate the upload option labeled Upload .sol Files or .zip.
- Use the provided interface to browse your local files.
- Select the desired
.sol(Solidity) file(s) or a.zipfile containing multiple contract files. - Confirm the upload by clicking the appropriate button, usually labeled Upload or similar.
Step 4: Finalize Adding Contract Files
- After uploading, click the Add Contract File button to finalize the process.
- Ensure the uploaded files appear in the contract list or designated area within the Web3 tab.
Notes
- Ensure that your
.solor.zipfiles are properly formatted and contain valid contract definitions. - Double-check the uploaded files to confirm they meet the application’s requirements.
- If you encounter errors during the upload process, review the error message and verify your files accordingly.
Troubleshooting
Issue: “File format not supported.”
Solution: Ensure you are uploading .sol or .zip files only.
Issue: “Upload failed.”
Solution: Check your internet connection and retry.
Issue: “Contract not appearing after adding.”
Solution: Verify if the correct file was uploaded and added by revisiting the Add Contracts section.